package com.sh.rbac.core.encrypt.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 接口加密属性
 *
 * @author wb
 * @since 2025-10-23
 */

@Data
@Component
@ConfigurationProperties(prefix = "encrypt.api")
public class ApiEncryptProperties {

    /**
     * 是否开启接口加密
     */
    private boolean enable =  false;

    /**
     * 请求头标识
     */
    private String headerFlag = "Encrypt-Key";

    /**
     * 公钥
     */
    private String publicKey;

    /**
     * 私钥
     */
    private String privateKey;
}
